﻿using Newtonsoft.Json;
using System;

namespace YiHaoHospitalPlatform.Model
{
    [JsonObject]
    public class BaseModel
    {
        /// <summary>
        /// 是否为新数据，服务器根据此字段判断是插入还是更新
        /// </summary>
        public bool isNew { get; set; }
        /// <summary>
        /// 缓存时间，过期的数据将被清除
        /// </summary>
        [JsonIgnore]
        public DateTime cacheTime { get; set; }
    }
}
